fixed before_filter for TasksController