updating views to require login