 					results: response.fermentables
 
 show = (req, reply) =>
+	if(req.auth.isAuthenticated)
+		user = req.auth.credentials.user
 	@get req.url.path, (status, response) =>
 		reply @renderer.page
 			title: "#{response.fermentables[0].name} - Fermentables - Ingredients"
 			navigationState: 'ingredients'
+			user: user
 			html: @renderer.render
 				template: "public/templates/fermentables/index.jade"
 				data: 

	]

list = (req, reply) =>
	@get req.url.path, (status, response) =>
		reply @renderer.page
			title: " Fermentables - Ingredients"
			navigationState: 'ingredients'
			html: @renderer.render
				template: "public/templates/gridList.jade"
				data: 

		{
			method: 'GET'
			path: '/fermentables/{id}'
			config: 
            	handler: show
            	auth: 
                	mode: 'try',
                	strategy: 'session'
            
           	 	plugins: 
                	'hapi-auth-cookie': 
                    	redirectTo: false  
		}
		{
			method: 'GET'
