Format error handling on login page