phonegap try login recursion fix!