added logout, header nav reflects login status. added header nav template for reuse.