fixed bug where user is not automatically logged in after creating new account