fix bug validate regiser