fixed sign up, login, and associated errors