Fixed date field validation error: keyup was clearing the field