fixing overwrite of user attributes on login with tests