validation and date formats