change extension validation method