Built the register/login cycle.