JC: added validate for task_category in model. Fixed spec and views.