Added check to submit() if worker is authorized