The .lower()s break the site.
If you want to add that constraint in you have to make sure the user can only enter unique names taking regardless of their case.
For example, "Test" has a different name but same URL as "test". So you would need to constrain this in your form.
Added some links in the centre of the screen rather than the nav bar.