Small changes to the Password credential validation.