fixing logging in and logging out with integration into the layout