Corrected bug regarding validation helper