Fix validating passwords