Fixed wrong use of invalid_client error