Rename validpath to valid_path