rails app example authentication with devise and mongoDB