Make sure the user is logged in before attempting a delete
When BotPasswords is used, even if you have already run the login.py
script, you will still end up logged out when you run the delete.py
script later. This patch provides a workaround so that delete.py remains
usable while we revamp the BotPasswords related processes to make the
login session info persistant.