modified field rendering based on django-registration-bootstrap by ebertti