fixed a bug in the invite signup flow