changed validators to rules