added password authentication and polymorphic association enalbing votes for posts and comments