adding a check for valid api key in mailchimp class