Add check for if api key for authorization check