dropdown for sex
added sex check
renamaed to ajax_func