Fixed validateDate