To run with loginWithServlet