Client-server validation