Fix subject realm validation