>
    Hi {{ user }} <a href="{% url 'homepage' %}" class="btn btn-primary" role="button">Your Panel</a>
  </div> 
    
{% else %}
  <form action="{% url 'register' %}" method="post" class="form">
      {% csrf_token %}
      {% bootstrap_form form %}
      {% buttons %}
          <button type="submit" class="btn btn-primary">
              Create {% bootstrap_icon "user" %} 
          </button>
      {% endbuttons %}
  </form>
{% endif %}
        
{% endblock body_box %}