changed code in pins index to make sure that edit and delete links were not showing up when a user was not signed in