added registration for users via json