Valka is a town in Latvia with town rights since 1584 .
Valka is a town in northern Latvia , on the border with Estonia .