validation for ticket model