Expanded ValidatePath to include more checks