fixed bug with new users not being able to log in