customize validation and add errors