added a sign out link and added a shared flash messages box.