main: add address validation