Upgraded Devise dependency to be looser but with a minimum version of 3.2.4

Fixes #2473
Fixes #2594