added inpute validation for payment and printing ticket