validate button