Added a library extension for session so that it would check if there was someone logged in and applied it to all views