Set up and validate max number prompt in while loop

Set up and validate max number prompt in while loop