implement basic sign in and sign out with menu and cookie