added use of devise secret key