code: def login(self, username, password, disableautosave=True, print_response=True):
          
          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
docs: :param username:
          :param password:
          :param disableautosave: boolean
          :param print_response: print log if required
          :return: status code, response data