Convert part of task validation to use CodeIgniter's validation library