Updated validateUploadPicture.