Simple onblur validation using directives and factory