took namaz's code for secure login, updated servlets to use the super doPost