Fixed validation in assign document form.