Small fix for mandatory fields and added a file status check when resubmitting the tasks.