Add the custom validation for Ticket.