Passes the right argument to isPasswordValid.

Previous version was passing the `name` argument instead of the `password`.