logout when resetting password

if a user is already logged in and try to reset the password of someone else, he will be redirected to the root_url but still logged in as the first user, which can be confusing.