finish painting validation logic