Fixed the candidate details validation