modify register and login