Fixes dynamic declared fields in frontend action

shouldn't this if statement be around the slug instead of the "item"?