js uploader validation