Composer updated to the latest 4.0.x versions
Commented out the call to session.regenerate
Moved the include of the recaptcha script to the htmlHeader and took it out of the anonymous layout.