Login API with cookies for android and other deployment variables being set