added devise for user authentication, added filtering by tag in documents#index view