Added validation for complete task, without showing the errors.