API key validation/errors