added handling of register response