Refreshing the page after finishing registration