corrected validate variable

corrected validate variable