fixed bug where user can sign up but cannot then log in.