Issue with hidden fields clearing on submission