Half of purchase ticket working, input validation