(CE-749) Prevent successful login on password change

If a user has requested closure, they shouldn't be logged in on a
successful password change. This was because we were setting cookies
before the request to the main login method which will set the cookies
anyway.