Move the pre and post security filter chains to only execute when the security filter chain does.