added login flags to login exchange