Added messageType to login/logout methods.