completed login/logout system