added login check to prof menu