Revert to devise 3.1.0 (which was working before 3a535e234cb811015a2eb92c24d7de8e900b54c2 and was changed for no reason, breaking the login)