Redirecting non-logged in users to index page; adding div container to head and footer to effect all contnet files