reupload login helper