fix a bug on sign up