Link button to validity