adding validator