add validator as spring bean