front-end login/logout implemented