Set credientials as Credentials object