protected function validate()
    {
        $validator = new ValidationHelper($this);
        if (!$validator->validate()) {
            foreach ($validator->getErrors() as $errors) {
                throw new NostoException(sprintf('Invalid Nosto account. %s', $errors[0]));
            }
        }
    }