birthday validation and reformat