Add Login and Send protocol.
fix merge conflicts