That happened to me on my first install. It keep telling me the password was wrong. Forgot to log out of iCloud on my OS devices first, and had duplicate device names under text forwarding etc. Changed AppleID password. When I did that, I couldn't update the new password in El Capitan. Preferences and iCloud locked up every time. Did another install with the updated password and everything is running smooth again.