js validation for uploading empty file was added.