Fixed bugs in Sign Up logic.