Login from API

Signed-off-by: Apure Gupta <apurve@gotechy.in>