Date field triggers the "Enter a valid time" error even when you are still filling the field