[BUGFIX] Respect argument 'required' for input and text fields