changing the return value of the client auth method to JSON