fixed authentication, user can now authenticate with basic
authentication on phonegap build.