Is there a way to prevent submission of the incomplete codes using input mask?