a little JSDoc for loginpopup