check for empty id on categories page