Added validation on api_key and account_id