best way to have it show log in at top & Log Out after they are logged in?

best way to have it show log in at top & Log Out after they are logged in?