Added debug info to checkCredentials

Added debug info since there were many questions about it.