VID-2032 wrapping UserLoginModal in a closure