client side validation of number entry