fix: 馃悰 Add check of key existence in template - unauth-acc-reg
The variable assignment has been missing checks if the keys exist in the associative array. This might have caused error page to be displayed, or at least the message has appeared in the logs. PR also includes small refactoring in order of the commands and fixes HTML tags.