Login, register and logout.