fix a bug in signing up new user