3;">  end</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">end</span></span></code></pre></div><p>At this point, the code we&#39;ve written should work. The only problem is that anyone can access the Dashboard page. Granted, doing so without being logged in will cause an error, but we don&#39;t want that.</p><h3 id="requiring-login" tabindex="-1">Requiring Login <a class="header-anchor" href="#requiring-login" aria-label="Permalink to &quot;Requiring Login&quot;">�