check if its an applicant or something else and swap what id is logged