modified secret_token.rb based on Daniel Fone recommendations