Use before_filter instead of before_action