how to restrict user to type 10 digit numbers in input element