added registration with avatar.