Can a vector field be responsible for the curvature perturbation in the Universe