Fixed a bug in the sign up process