fixes authenticate