adding creds check