:param username:
        :param password:
        :param disableautosave: boolean
        :param print_response: print log if required
        :return: status code, response data

def login(self, username, password, disableautosave=True, print_response=True):
        """
        :param username:
        :param password:
        :param disableautosave: boolean
        :param print_response: print log if required
        :return: status code, response data
        """
        if type(username) != str:
            return False, "Username must be string"

        if type(password) != str:
            return False, "Password must be string"

        if type(disableautosave) != bool:
            return False, "Disableautosave must be boolean"

        data = {"username": username, "password": password, "disableautosave": disableautosave}

        status_response, response = self.call_api("r/user/login/", data, print_response=print_response)

        # Store httpcookie if possible
        if status_response and "deployr" in response:
            if "response" in response["deployr"]:
                if "httpcookie" in response["deployr"]["response"]:
                    self.JSESSIONID = response["deployr"]["response"]["httpcookie"]

        return status_response, response