Fix validateTransaction