A time-stepping method for Galerkin approximations for nonlinear parabolic equations