Form resets after prepopulating successfully