Added error handling for login errors