Ajax based login example using jquery, servlet.