Added filetype check to addword.php