Implementing login functionality using Servlet and JSP