Fixed an incorrect closing tag in a template.
Reintroduced link to settings from the login box header.

The link doesn't interfere with Bootstrap's dropdown.