validation on input for reading transactions