Fix bugs in sign up and GUI