Implementing login functionality using Servlets and JSP