the validation will take place before the insert if you make sure the server validation code block is before the insert code block.
Also, when initially arriving at the INSERT form page the page picks up on 2 form variables from the previous page. 
use hidden elements to capture the form variables passed in and resend them when the form is submitted.


