validate wacky function

used a while loop to validate that entry was a number and not left blank