added logic to fix registration confirmation page and also to remove an infinite loop on the cases listsing