done the register and login