correctly call user logout when self deleted

the user wasn't correctly logged out after deleting him/herself because the intended method call was actual an assignment to a local variable. this wasn't a big issue since the account got locked before deletion, but now it works as intended. also did some refactoring to make the case where the user deletes itself more clear.