remove redundant check of credentials
fixes #47