fixed bug where user was not logged in after signing up