Add function to validate address