develop the register and login