added login/logout system