changes to check credentials