Why does this not function correctly? No matter what value you enter it ALWAYS returns "Invalid Ticket Type"