Added stat_name validation