fix a critical bug on signup