changed a conditional to check session[:user_id] instead of params[:user_id] because params change depending on the route and session[:user_id] should be the same from route to route