tasks: added validation of empty strings of workers and tasks