Fixing bugs in signup and password reseting.