added custom validation for deadline (task model)