Added authentication to links controller