fixes bug in signup