Fixed a bug where required is not supported by textarea