edited top nav for logged in user. added mongoose as dependency.