Added check for valid API key before displaying options.