correctly read the credentials file