Error validation.