use validate_re instead if, remove one typo