changes to login and create account to handle errors that may appear