Revert "Close if statement"

This reverts commit f654fbaf1586e18456f4eb20b0515b23be76afb7.
Revert "Categorize errors/ Improve HTML/CSS log"

This reverts commit 0388c87e4bc09034265fab4d00b2b08580eda309.