extend the number-checker component with an input listener