fixed null for session[:users] error