updated devise to use a secret for the key