Fix Devise login problem on Mongoid