adding login / logout capabilities

Signed-off-by: Roger Manich <roger.manich@gmail.com>