Collecting names first into an ArrayList for validation