Modified login code in user registration code in HtmlServlet.