Added role question to authorize functon