validation and error handling for location input