Error check set API key