Extracted wait for login/logout methods to base.py