fixes to user input validation and item validation against lower and upper bound