added conditions for non-existing birthday and sex