login/logout functionality added