Register validate bug fix