Fix password missmatch

Looks like the form in the confirmation email screen has some code to check if the password confirmation matches the given password, but it's not working properly. 

This PR fixes the issue and I've reformatted the code a bit – there's still room for improvement, but I'll leave that for another day... :smile: