compatible with devise 3.2.1