added required validation on name property