Login and logout implemented.