added functionality to know user type in displayServlet