Add exception handling for validations.