Use custom attributes in validation