improve style of checkCredentials