save gender to core data