Date field is displaying an error to enter a valid year