adding login required to dashboard view