Login functionality with Struts 1.x, JQuery and MySql