Added logic to redirect user to LoginFailed.xhtml page when the login credentials are invalid.