fix error in register page