phonegap sign in working