Treatment for not logged in users. Michael bugs fixes.