credential check working