publish() should also accept beforeRequest validator