Added login/logout capability