validation and date format