Fixed a bug in logiServlet and added logiin and register method to interface