Login? You mean the activation/registration prompt? That has nothing to do with your Windows account.
VS is a separately licensed application. In order to use it (even the free Commercial version) you need to either have a MS account associated with it or use a product key. If you are using an MS account then periodically it has to update the license to ensure it doesn't go stale or get revoked. To do that it calls home. If it cannot call home or you fail to refresh your license then eventually you cannot use VS without getting the prompt to check for an updated license.
Please provide screenshot(s) of what you're seeing along with information about how you are licensing VS.