refactored contactServlet.java