changed the auth to take in the user type