validation for birtday and reformat to ISO