added navigation links to template dependent on whether user is logged in or not