Implementado login/logoff.

Signed-off-by: Geidivan <geidivan@gmail.com>