fixed email attachment extension validation