included more validation on the ticket model