Add checking for null home location.

Refactor latitude,longitude => Location object.