It looks like you have Numeric validation not Unique Value in Database validation set up for the username. I think you have the wrong type of validation set up. If you turn on Debug in your queryobj.php file it should give you a better message when the insert fails.