understanding devise mongoid