only redirecting on successful creation of object, fixes #334