How to place a condition for a birth date field?