Login and Logout implemented