Added reset for hash if user typed invalid number.