register validation fix