added where non logged in users cannot acces pages and fixed notice bug