added error message for sex field. fixed #104