Adds validation of object id in params