only allow 1 digit input

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