fix validation for location model