added auth to view