fixed adding of users when logging in