add client check to the auth controller
add client provider mock for auth controller