Small fix to password validator