Even if your Minecraft login button is not working, you don't have to purchase Minecraft again if you've not played in a while or moved devices. If you need to reinstall the game, go to the Download link and follow the steps for your chosen version.