logout function requires login status, update phonegap wiki