corrected validate regex