Adding validator callbacks