added mongoid config, updated devise