Is there any method ( e.g: extend some class ? ) which i can add some custom handler when someone login failed .