Can usage autonumber as validator.
change some code.