Compositeness on photon and the form factor of hadrons form the view point of the bethe salpeter equation