add required validation