<% if (typeof(session) !== "undefined") { %>
Logged in as <%= session.username %>
Dashboard
Logout
<% } else { %>
Login
<% } %>