Added validator for add record