Fixed validation on form submission while assigning.