Add login support with the needed info. Fixes #3.