Fixed issue with bitbucket and authenticating