only accept digits 1-9

Signed-off-by: Liew Zhao Wei <zhaoweiliew@gmail.com>