Added authentication for views

Please accept pull request.
This update fixes security problems with users seeing other users info.