Un-copy-pasta the login response handler using std::function magic