add custom validation function option