adding custom input number validation