error checking for activity id