implemented rudimentary login/logout system