number validation function
use external function for getnumber
add getnumber