register is added and login is updated