find credentials by session[:id] and not by params[:id]
gemfile
Fix reload logout