Updated to submit form and check for completion