mybutton error validation