Corrected the validation error