Add validation of api key file