Move binding and error handling to the string->form function