created while loop to verify prompt

created while loop to verify prompt