passed the results to form success and error callbacks