role name update and js validate for official contract