checking credential cache