added a client validation check