Add second argument  to client validation function