Don't segfault, capture login handler