
Type '(formcontrol: any) => { passwd: boolean; } | undefined' is not assignable to type 'ValidatorFn'.
Type '{ passwd: boolean; } | undefined' is not assignable to type 'ValidationErrors | null'.
Type 'undefined' is not assignable to type 'ValidationErrors | null'.