add class and required attributes for input.
update ver.
add a input model and fix a required.
fix a declared error.