added login required to views