fixed all known bugs in signup and register functionality