updated address validator and tests