Blog application using sinatra, mongodb with authentication