How do I create a login and log out button in the header

HI There

I want to put a login and logout button in my header how would one do this?