Adding before filter to authentication