Added logged in  test to all controllers