validate edit building