Creates the logged_in? helper method and updates layout for logged-in users