change the auth check method.