Fix for devise password reset after upgrade