Validating dates in Atom