Add required attr for input control