Made login/logout of users