check IDs before doing handler operations.
Remove the GetLogs and CountsLogs. We can add them later if needed, but it didn't seem useful enough and it eliminates various attacks.
fixed a bug in the regex for a valid id.