Fixed validation of location.