Added protection from non-logged in users