legal checks for home buying