diff --git a/samples/contacts/src/main/webapp/login.jsp b/samples/contacts/src/main/webapp/login.jsp
index 8a9ca679a2..ceded0bf91 100644
--- a/samples/contacts/src/main/webapp/login.jsp
+++ b/samples/contacts/src/main/webapp/login.jsp
@@ -27,14 +27,14 @@
--%>
- Reason: <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
+ Your login attempt was not successful, try again.
+ Reason: