Added login support
Merge pull request #8 from efranceschi/master

Added login support