I came with a problem when using validity in Safari. I found the reason was that 'Date' parsing in Chrome and Safari are different.