Fix ReCAPTCHA only being shown on refresh of page