Modified the navbar layout and added a local var in the navigation partial so as not to check logged_in? multiple times when rendering.