Password validation fix