Add sign in and sign out logic to the top menu bar