Added authentication for views and controllers