Added redirect before filter