The Login.LoginError event is raised when the credentials entered by the user are invalid. You can use the Login.LoginError event to redirect the user to a custom error page, to offer additional help, or to log failed login attempts.
For more information about handling events, see Consuming Events.