Added Errors Infomation in checkCredentials()