also check whether user is logged in before checking votes