It should be enforced naturally due to the neglect of the boundary term arising via integration by parts.
on(1,u2=0);