fixed non logged in user issue