function for checking input - if NotANumber do alert