moved email-to-username middleware into app
show username in logout button if applicable