add error handling on login