Fixing the auth scheme