Use a condition instead of before filter to verify user authentication.