if not logged in then only feed and main pages