added a new type, 'hidden', to emit hidden input tag.