Changed autoform onSubmit to onSuccess