fixed the auth process