Fixed for to_json issue in Devise + Mongoid