reset button works with validation