add a spinner to the validatebutton