refactored to send and receive a login request on a Direct exchange