added address validation