Fixed bug in the register page