Controlling water leakage and preventing loss in water supply