KAZOO-2217: Add validation for realm field