error handling if no slug set