fixed minor bug - return value uf checkCredentials