Sets the login for a user