fixed up authenticate passphrase
renamed loginCredentials table to secrets, made generic