{% if user.is_authenticated %}
{% csrf_token %} Welcome, {% include 'snippets/username.html' with user=request.user %}
{% else %}
{% for field in login_form %} {{ field }} {% endfor %}
{% endif %}
{% block content %} {% endblock %}