chnages for validating api key