reverting my code after the merge problems and added an ajax call to get recaptcha.