Validated file type and presence during uploading file