validation and clear added