validate file extension supported.