adding authenticate before filter to votes and posts controllers