Handling of login errors.