bugfix: add required mark only to required fields