Quark model and the Bethe-Salpeter equation