Login form with Ajax and PhoneGap working