added navigation bar, render_secure method to only render page if valid cookie