refactored Bot#validate