validation fix bug