passwordValid instead of validPassword fix