test login with phonegap