Confirm password field always prints “passwords don't match” while registering

I had already posted this in Stack Overflow without any luck:,

So I wondered if somebody could help me out here:

Please have a look at the following site:

Username: uzh Password: osn

Now please enter a password and confirm it (no need to register)

Although the repeated password is the same, it always prints:

Passwords don’t match.

Why is that? However, after hitting the register button (still no need to register or fill out the other fields), the css shows a matching sign.

I’m using the useraccounts package:

Here’s the code, especially my own templates:

Any help highly appreciated.