{% if user.is_authenticated %}
Welcome,
{{ user.username }}
. 
logout
{% endif %} {% block content %}{% endblock %}