Date validator improved