wire up listener to validate button