allowing devise versions above 3.1