You can add attributes to the session in the first jsp like this:
<% session.setAttribute(uname,"somevalue"); %>
you can retrieve this object in second jsp as:
<%
String username= session.getAttribute(uname); %>
and you can validate the user.
Dont't forget to put <%@ page session="true" %> in both the JSPs.