fix form type and double upload error