Updated VerifyCredentials method