typed errors for validations.