```ruby
module AuthsHelper
  def current_user
    if session[:user_id]
      @current_user ||= User.find_by_id(session[:user_id])
    end
  end

  def logged_in?
    !current_user.nil?
  end
end
```

Fix session user id param.
user
```ruby
module AuthsHelper
  def current_user
    if session[:id]
      @current_user ||= User.find(session[:id])
    end
  end

  def logged_in?
    !current_user.nil?
  end
end
```
assistant