Man taken to hospital after crashing into tree