path checking added for remove_user_files