fixed div nesting issues and broken syntax on registration templates