       <label for="id_gender">Gender*</label>
          <select name="gender" id="id_gender"
                  class="form-control {% if form.gender.errors %}is-invalid{% endif %}"
                  required>
            <option value="">Select Gender</option>
            <option value="Male" {% if form.gender.value == 'Male' %}selected{% endif %}>Male</option>
            <option value="Female" {% if form.gender.value == 'Female' %}selected{% endif %}>Female</option>
          </select>
          {% if for