Simple directive to allow entering of valid numbers.