Updated Date validator to conditionally allow a null value