if request.headers.get('Authorization'):
        user = User.query.filter_by(bitbucket=profile['uuid']).first()
        if user:
            response = jsonify(message='There is already a Bitbucket account that belongs to you')
            response.status_code = 409