Revert "Fix login and logout for cordova phonegap."

This reverts commit ec048143f131df54b9815cdd1147253cd39bd016.