added required validations

added required validations