loginRequired component + improvements to modal events