Added functionality to disable buttons if the license is invalid