added authentication to app and votes to posts