Added Regex to check API key