Fixed a bug in user sign up.