minor fix to determining if applicant or program from cookie