Refactor signUp.