how to set the limit of the field and prevent same submission?