chnaged ensure logged in to except show and index