Condition set to limit the number of submission on the form is not working