Add check for not logged in users in the filter attribute