updated devise with secret key