Fix passwords are equal check for the register page