Login functionality using struts 1.x, JQuery and MySQL