add required fields validation