Cleaning up validateLocation() validation code