Checks whether the given credentials match what is stored in the database.
instance of SecretStorage
the credentials that are being checked.
true if successful, false otherwise.