implements session model to store logged in user
implements session logic on nav bar