Update devise_security_extension.rb

Support for mongoid