updated event factory, change sign in path to root path