Defer error handling of runInputForm to user code.
runInputPostResult is the modified method
Factor out some duplicated code