Attached login to the API

Signed-off-by: Alan Gardner <alan@armoin.com>