Fix a bug when user sign up