Refactored api key validation.