add login and logout actions in the layout