Performs login with the provided credentials

def login(self, username=None, password=''):
        """Performs login with the provided credentials"""
        self.username = username
        self.password = password
        return self._login()