```ruby
class ProfileController < ArticlesController
  before_action :require_sign_in

  def edit
  end

  def update
    current_user.update_goal!(params[:goal_statement], params[:goal_deadline])
    flash[:success] = I18n.t('profile.update.save_success_message')

    render :edit
  end

  private

  def require_sign_in
    redirect_to new_user_session_path unless user_signed_in?
  end
end
```

Use Device provided `before_action :authenticate_user!` instead of `user_signed_in?` from the Authentication concern.
user
```ruby
class ProfileController < ArticlesController
  before_action :authenticate_user!

  def edit
  end

  def update
    current_user.update_goal!(params[:goal_statement], params[:goal_deadline])
    flash[:success] = I18n.t('profile.update.save_success_message')

    render :edit
  end
end
```
assistant