password field validation fix