Registering doctors and patients, managing private chat rooms