ext %}"{{ request.POST.next }}"{% else %}"{% url 'api:api_root_view' %}"{% endif %} />
      <div class="clearfix control-group {% if form.username.errors %}error{% endif %}"
          id="div_id_username">
        <div class="form-group">
          <label for="id_username">Username:</label>
          <input type="text" name="username" maxlength="100"
              autocapitalize="off"
              autocorrect="off" class="form-control textinput textInput"
              id="id_username"  autocomplete="off"