added validation to ticket