improved customization of validation