added login and logout front-end