Create sessions helper with current user helper method
user
```ruby
module SessionsHelper
  def current_user
    User.find_by(id: session[:user_id]) if session[:user_id]
  end

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