Use right context for custom validation elements