Resolve issue with registerRule.

Resolve rule name checking logic so that '@' is prefixed to the name while checking.