Return error message for invalid_resource_owner when credentials are invalid

Issue #444