Fixed #22383 -- Added optional html required attribute to required field...

- Added option to ad HTML5 ``required`` attribute to form fields which are `required`.
- As suggested on the ticket, we need to make this default, so considering that, the approach as used in https://code.djangoproject.com/ticket/20684 could be used here.

Refs. https://code.djangoproject.com/ticket/22383

**Needs to be reviewed, not ready for merge**