Error Handling for login form with custom messages.