Three people were injured in a head-on crash shortly before midnight Monday