year input to text field with number validation