Added logged in to templates