A directive for number input which prevents user from inputting anything except numbers.