fixed required issue for inputs.