On the regularity of the minimizer of a functional with exponential growth