add custom validator class