Added File up load with checks on validity