adding remote validation code