adding some validation to the address input, allowing deletion properly