react hook form reset dirty after submit