adds before_filter to user pages