add register and login