added check to ignore input[type=file]