Update CHtml.php

Posted by exhibiting attributes "required"