Prevent validator being called two times