added custom validation to tasks model