Directive properly being registered