Star formation in barred galaxies