Fix error when viewing the page regsitering