Delete lines 22-54 that is not being used.
Does the insert take place on the live server just not the redirect?
Update the insert trigger to use the same button press trigger as the validation. Validation and actions should use the same redirect.
If it still doesn't work, please attach the new file in a reply.