Sessions are kinda working now. Logged in users are being redirected when visiting the homepage, users can now logout from select pages which redirects them to the homepage