implemented authentication with bitbucket