removed the unnecessary while loops around the askAndValidate functions