Membership plugin signup and login pop up

When users use the popup registration, and the user is already a registered member, all they need to do is login with their username and password.

So when a registered user does that via popup registration form, and clicks login, they receive the “regisration complete message” popup that i created and are not logged in. How do i fix this issue?