add login helper to admin pages