Fixed a bug in the register form.