Directive for checking password strength in angular