added support for defaultValue in inputs