I’ve looked through your file and I don’t see any obvious problems….
When you click the submit button does the page reference change to: “users_Profile.php?valid=false”
That would imply that it is failing validation.
To debug you could add code below line 107 :
<?php die($WA_Sql); ?>
That should show you the code that is being sent to the database and you might be able to spot a problem there.
I’m sure I could debug it and find the problem in a premiere ticket pretty quickly if you want to go that route.