Fixes a bug in signup