modify user register and login