Chain setCredentials and checkLogin