validation twice bug fixed