Enhanced security in task management