Refactor birth date validation