added validation on name and address