adding file extension validation