fixed validate failed method.