Checking for valid user input
Put HTML error codes into a switch/case statement with a default to at least display an error if generated
Correcting bad merge of branches