legal checks before buying a new build in spain