Fixed bugs in user sign up process.

The only good bug is a dead bug.