added server validation