validations added to quantity field; debt is counted and shown to the user