fixed a non-logged in user problem