automatic code validation and prevent error code from being submitted across.