fixed birthday code

checks for periods