```ruby
require_dependency "ajo_register/application_controller"
class AjoRegister::RegistrationsController < Devise::RegistrationsController
  def index
  end

  def new
    super
  end

  def create
    if verify_recaptcha
      super
    else
      build_resource
      clean_up_passwords(resource)
      resource.errors.add(:recaptcha, 'Incorrect. Please try again!')
      render :new
    end
  end

  def edit
    super
  end

  def thank_you
  end

  protected
  def after_sign_up_path_for(resource_or_scope)
    main_app.registration_thank_you_path
  end
end```

Add after sign up path
user
```ruby
require_dependency "ajo_register/application_controller"
class AjoRegister::RegistrationsController < Devise::RegistrationsController
  def index
  end

  def new
    super
  end

  def create
    if verify_recaptcha
      super
    else
      build_resource
      clean_up_passwords(resource)
      resource.errors.add(:recaptcha, 'Incorrect. Please try again!')
      render :new
    end
  end

  def edit
    super
  end

  def thank_you
  end

  protected
  def after_sign_up_path_for(resource)
    main_app.registration_thank_you_path
  end
end```
assistant