Why uploading of files through my form is not working properly?