Added logout action and modified template to display username