Restrict the user to only being able to type a digit