just made the login logic work with index.jsp