remove imports and validate CandidateProfile